import request from '@/utils/request'

export function activityList(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/discountActivity/selectByConditions',
    method: 'get',
    params: query
  })
}

export function activityEdit(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/discountActivity/updateByActivity',
    method: 'post',
    data
  })
}

export function addActivity(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/discountActivity/add',
    method: 'post',
    data
  })
}

export function activityDetail(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/discountActivity/getById',
    method: 'get',
    params: query
  })
}

